{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "3dfe4be4",
   "metadata": {},
   "outputs": [],
   "source": [
    "from pyecharts import options as opts\n",
    "from pyecharts.charts import HeatMap\n",
    "\n",
    "from pyecharts.faker import Faker\n",
    "import random"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "d1db505a",
   "metadata": {},
   "outputs": [],
   "source": [
    "value = [[i, j, random.randint(0, 50)]  for i in range(24) for j in range(7)]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "8a7c0874",
   "metadata": {
    "collapsed": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[[0, 0, 36],\n",
       " [0, 1, 46],\n",
       " [0, 2, 36],\n",
       " [0, 3, 20],\n",
       " [0, 4, 16],\n",
       " [0, 5, 6],\n",
       " [0, 6, 15],\n",
       " [1, 0, 26],\n",
       " [1, 1, 47],\n",
       " [1, 2, 18],\n",
       " [1, 3, 29],\n",
       " [1, 4, 44],\n",
       " [1, 5, 48],\n",
       " [1, 6, 47],\n",
       " [2, 0, 49],\n",
       " [2, 1, 1],\n",
       " [2, 2, 25],\n",
       " [2, 3, 46],\n",
       " [2, 4, 3],\n",
       " [2, 5, 22],\n",
       " [2, 6, 34],\n",
       " [3, 0, 46],\n",
       " [3, 1, 34],\n",
       " [3, 2, 0],\n",
       " [3, 3, 15],\n",
       " [3, 4, 36],\n",
       " [3, 5, 11],\n",
       " [3, 6, 43],\n",
       " [4, 0, 28],\n",
       " [4, 1, 26],\n",
       " [4, 2, 6],\n",
       " [4, 3, 38],\n",
       " [4, 4, 3],\n",
       " [4, 5, 45],\n",
       " [4, 6, 29],\n",
       " [5, 0, 36],\n",
       " [5, 1, 1],\n",
       " [5, 2, 47],\n",
       " [5, 3, 41],\n",
       " [5, 4, 2],\n",
       " [5, 5, 3],\n",
       " [5, 6, 15],\n",
       " [6, 0, 45],\n",
       " [6, 1, 27],\n",
       " [6, 2, 27],\n",
       " [6, 3, 32],\n",
       " [6, 4, 36],\n",
       " [6, 5, 0],\n",
       " [6, 6, 6],\n",
       " [7, 0, 36],\n",
       " [7, 1, 42],\n",
       " [7, 2, 17],\n",
       " [7, 3, 4],\n",
       " [7, 4, 16],\n",
       " [7, 5, 14],\n",
       " [7, 6, 4],\n",
       " [8, 0, 0],\n",
       " [8, 1, 14],\n",
       " [8, 2, 7],\n",
       " [8, 3, 47],\n",
       " [8, 4, 17],\n",
       " [8, 5, 43],\n",
       " [8, 6, 23],\n",
       " [9, 0, 44],\n",
       " [9, 1, 27],\n",
       " [9, 2, 20],\n",
       " [9, 3, 17],\n",
       " [9, 4, 44],\n",
       " [9, 5, 30],\n",
       " [9, 6, 23],\n",
       " [10, 0, 48],\n",
       " [10, 1, 25],\n",
       " [10, 2, 14],\n",
       " [10, 3, 11],\n",
       " [10, 4, 29],\n",
       " [10, 5, 31],\n",
       " [10, 6, 14],\n",
       " [11, 0, 3],\n",
       " [11, 1, 22],\n",
       " [11, 2, 30],\n",
       " [11, 3, 20],\n",
       " [11, 4, 15],\n",
       " [11, 5, 47],\n",
       " [11, 6, 11],\n",
       " [12, 0, 45],\n",
       " [12, 1, 3],\n",
       " [12, 2, 43],\n",
       " [12, 3, 48],\n",
       " [12, 4, 36],\n",
       " [12, 5, 1],\n",
       " [12, 6, 46],\n",
       " [13, 0, 14],\n",
       " [13, 1, 6],\n",
       " [13, 2, 40],\n",
       " [13, 3, 49],\n",
       " [13, 4, 1],\n",
       " [13, 5, 11],\n",
       " [13, 6, 40],\n",
       " [14, 0, 13],\n",
       " [14, 1, 15],\n",
       " [14, 2, 32],\n",
       " [14, 3, 1],\n",
       " [14, 4, 7],\n",
       " [14, 5, 15],\n",
       " [14, 6, 10],\n",
       " [15, 0, 27],\n",
       " [15, 1, 13],\n",
       " [15, 2, 10],\n",
       " [15, 3, 25],\n",
       " [15, 4, 7],\n",
       " [15, 5, 6],\n",
       " [15, 6, 45],\n",
       " [16, 0, 39],\n",
       " [16, 1, 21],\n",
       " [16, 2, 26],\n",
       " [16, 3, 37],\n",
       " [16, 4, 44],\n",
       " [16, 5, 17],\n",
       " [16, 6, 34],\n",
       " [17, 0, 39],\n",
       " [17, 1, 49],\n",
       " [17, 2, 17],\n",
       " [17, 3, 40],\n",
       " [17, 4, 35],\n",
       " [17, 5, 3],\n",
       " [17, 6, 45],\n",
       " [18, 0, 34],\n",
       " [18, 1, 41],\n",
       " [18, 2, 41],\n",
       " [18, 3, 49],\n",
       " [18, 4, 38],\n",
       " [18, 5, 43],\n",
       " [18, 6, 43],\n",
       " [19, 0, 26],\n",
       " [19, 1, 33],\n",
       " [19, 2, 15],\n",
       " [19, 3, 1],\n",
       " [19, 4, 0],\n",
       " [19, 5, 23],\n",
       " [19, 6, 37],\n",
       " [20, 0, 13],\n",
       " [20, 1, 27],\n",
       " [20, 2, 49],\n",
       " [20, 3, 50],\n",
       " [20, 4, 1],\n",
       " [20, 5, 34],\n",
       " [20, 6, 7],\n",
       " [21, 0, 42],\n",
       " [21, 1, 7],\n",
       " [21, 2, 29],\n",
       " [21, 3, 6],\n",
       " [21, 4, 41],\n",
       " [21, 5, 24],\n",
       " [21, 6, 39],\n",
       " [22, 0, 48],\n",
       " [22, 1, 1],\n",
       " [22, 2, 48],\n",
       " [22, 3, 12],\n",
       " [22, 4, 5],\n",
       " [22, 5, 8],\n",
       " [22, 6, 0],\n",
       " [23, 0, 26],\n",
       " [23, 1, 46],\n",
       " [23, 2, 17],\n",
       " [23, 3, 48],\n",
       " [23, 4, 19],\n",
       " [23, 5, 30],\n",
       " [23, 6, 0]]"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "value"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "b8c1118b",
   "metadata": {
    "collapsed": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['12a',\n",
       " '1a',\n",
       " '2a',\n",
       " '3a',\n",
       " '4a',\n",
       " '5a',\n",
       " '6a',\n",
       " '7a',\n",
       " '8a',\n",
       " '9a',\n",
       " '10a',\n",
       " '11a',\n",
       " '12p',\n",
       " '1p',\n",
       " '2p',\n",
       " '3p',\n",
       " '4p',\n",
       " '5p',\n",
       " '6p',\n",
       " '7p',\n",
       " '8p',\n",
       " '9p',\n",
       " '10p',\n",
       " '11p']"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "Faker.clock"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "d3c6dbef",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['周一', '周二', '周三', '周四', '周五', '周六', '周日']"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "Faker.week"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "c45f51f2",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"e8cfb5ec84464b129fc2650e6970a893\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_e8cfb5ec84464b129fc2650e6970a893 = echarts.init(\n",
       "                    document.getElementById('e8cfb5ec84464b129fc2650e6970a893'), 'white', {renderer: 'canvas'});\n",
       "                var option_e8cfb5ec84464b129fc2650e6970a893 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"heatmap\",\n",
       "            \"name\": \"\\u70ed\\u529b\\u56fe\",\n",
       "            \"data\": [\n",
       "                [\n",
       "                    0,\n",
       "                    0,\n",
       "                    36\n",
       "                ],\n",
       "                [\n",
       "                    0,\n",
       "                    1,\n",
       "                    46\n",
       "                ],\n",
       "                [\n",
       "                    0,\n",
       "                    2,\n",
       "                    36\n",
       "                ],\n",
       "                [\n",
       "                    0,\n",
       "                    3,\n",
       "                    20\n",
       "                ],\n",
       "                [\n",
       "                    0,\n",
       "                    4,\n",
       "                    16\n",
       "                ],\n",
       "                [\n",
       "                    0,\n",
       "                    5,\n",
       "                    6\n",
       "                ],\n",
       "                [\n",
       "                    0,\n",
       "                    6,\n",
       "                    15\n",
       "                ],\n",
       "                [\n",
       "                    1,\n",
       "                    0,\n",
       "                    26\n",
       "                ],\n",
       "                [\n",
       "                    1,\n",
       "                    1,\n",
       "                    47\n",
       "                ],\n",
       "                [\n",
       "                    1,\n",
       "                    2,\n",
       "                    18\n",
       "                ],\n",
       "                [\n",
       "                    1,\n",
       "                    3,\n",
       "                    29\n",
       "                ],\n",
       "                [\n",
       "                    1,\n",
       "                    4,\n",
       "                    44\n",
       "                ],\n",
       "                [\n",
       "                    1,\n",
       "                    5,\n",
       "                    48\n",
       "                ],\n",
       "                [\n",
       "                    1,\n",
       "                    6,\n",
       "                    47\n",
       "                ],\n",
       "                [\n",
       "                    2,\n",
       "                    0,\n",
       "                    49\n",
       "                ],\n",
       "                [\n",
       "                    2,\n",
       "                    1,\n",
       "                    1\n",
       "                ],\n",
       "                [\n",
       "                    2,\n",
       "                    2,\n",
       "                    25\n",
       "                ],\n",
       "                [\n",
       "                    2,\n",
       "                    3,\n",
       "                    46\n",
       "                ],\n",
       "                [\n",
       "                    2,\n",
       "                    4,\n",
       "                    3\n",
       "                ],\n",
       "                [\n",
       "                    2,\n",
       "                    5,\n",
       "                    22\n",
       "                ],\n",
       "                [\n",
       "                    2,\n",
       "                    6,\n",
       "                    34\n",
       "                ],\n",
       "                [\n",
       "                    3,\n",
       "                    0,\n",
       "                    46\n",
       "                ],\n",
       "                [\n",
       "                    3,\n",
       "                    1,\n",
       "                    34\n",
       "                ],\n",
       "                [\n",
       "                    3,\n",
       "                    2,\n",
       "                    0\n",
       "                ],\n",
       "                [\n",
       "                    3,\n",
       "                    3,\n",
       "                    15\n",
       "                ],\n",
       "                [\n",
       "                    3,\n",
       "                    4,\n",
       "                    36\n",
       "                ],\n",
       "                [\n",
       "                    3,\n",
       "                    5,\n",
       "                    11\n",
       "                ],\n",
       "                [\n",
       "                    3,\n",
       "                    6,\n",
       "                    43\n",
       "                ],\n",
       "                [\n",
       "                    4,\n",
       "                    0,\n",
       "                    28\n",
       "                ],\n",
       "                [\n",
       "                    4,\n",
       "                    1,\n",
       "                    26\n",
       "                ],\n",
       "                [\n",
       "                    4,\n",
       "                    2,\n",
       "                    6\n",
       "                ],\n",
       "                [\n",
       "                    4,\n",
       "                    3,\n",
       "                    38\n",
       "                ],\n",
       "                [\n",
       "                    4,\n",
       "                    4,\n",
       "                    3\n",
       "                ],\n",
       "                [\n",
       "                    4,\n",
       "                    5,\n",
       "                    45\n",
       "                ],\n",
       "                [\n",
       "                    4,\n",
       "                    6,\n",
       "                    29\n",
       "                ],\n",
       "                [\n",
       "                    5,\n",
       "                    0,\n",
       "                    36\n",
       "                ],\n",
       "                [\n",
       "                    5,\n",
       "                    1,\n",
       "                    1\n",
       "                ],\n",
       "                [\n",
       "                    5,\n",
       "                    2,\n",
       "                    47\n",
       "                ],\n",
       "                [\n",
       "                    5,\n",
       "                    3,\n",
       "                    41\n",
       "                ],\n",
       "                [\n",
       "                    5,\n",
       "                    4,\n",
       "                    2\n",
       "                ],\n",
       "                [\n",
       "                    5,\n",
       "                    5,\n",
       "                    3\n",
       "                ],\n",
       "                [\n",
       "                    5,\n",
       "                    6,\n",
       "                    15\n",
       "                ],\n",
       "                [\n",
       "                    6,\n",
       "                    0,\n",
       "                    45\n",
       "                ],\n",
       "                [\n",
       "                    6,\n",
       "                    1,\n",
       "                    27\n",
       "                ],\n",
       "                [\n",
       "                    6,\n",
       "                    2,\n",
       "                    27\n",
       "                ],\n",
       "                [\n",
       "                    6,\n",
       "                    3,\n",
       "                    32\n",
       "                ],\n",
       "                [\n",
       "                    6,\n",
       "                    4,\n",
       "                    36\n",
       "                ],\n",
       "                [\n",
       "                    6,\n",
       "                    5,\n",
       "                    0\n",
       "                ],\n",
       "                [\n",
       "                    6,\n",
       "                    6,\n",
       "                    6\n",
       "                ],\n",
       "                [\n",
       "                    7,\n",
       "                    0,\n",
       "                    36\n",
       "                ],\n",
       "                [\n",
       "                    7,\n",
       "                    1,\n",
       "                    42\n",
       "                ],\n",
       "                [\n",
       "                    7,\n",
       "                    2,\n",
       "                    17\n",
       "                ],\n",
       "                [\n",
       "                    7,\n",
       "                    3,\n",
       "                    4\n",
       "                ],\n",
       "                [\n",
       "                    7,\n",
       "                    4,\n",
       "                    16\n",
       "                ],\n",
       "                [\n",
       "                    7,\n",
       "                    5,\n",
       "                    14\n",
       "                ],\n",
       "                [\n",
       "                    7,\n",
       "                    6,\n",
       "                    4\n",
       "                ],\n",
       "                [\n",
       "                    8,\n",
       "                    0,\n",
       "                    0\n",
       "                ],\n",
       "                [\n",
       "                    8,\n",
       "                    1,\n",
       "                    14\n",
       "                ],\n",
       "                [\n",
       "                    8,\n",
       "                    2,\n",
       "                    7\n",
       "                ],\n",
       "                [\n",
       "                    8,\n",
       "                    3,\n",
       "                    47\n",
       "                ],\n",
       "                [\n",
       "                    8,\n",
       "                    4,\n",
       "                    17\n",
       "                ],\n",
       "                [\n",
       "                    8,\n",
       "                    5,\n",
       "                    43\n",
       "                ],\n",
       "                [\n",
       "                    8,\n",
       "                    6,\n",
       "                    23\n",
       "                ],\n",
       "                [\n",
       "                    9,\n",
       "                    0,\n",
       "                    44\n",
       "                ],\n",
       "                [\n",
       "                    9,\n",
       "                    1,\n",
       "                    27\n",
       "                ],\n",
       "                [\n",
       "                    9,\n",
       "                    2,\n",
       "                    20\n",
       "                ],\n",
       "                [\n",
       "                    9,\n",
       "                    3,\n",
       "                    17\n",
       "                ],\n",
       "                [\n",
       "                    9,\n",
       "                    4,\n",
       "                    44\n",
       "                ],\n",
       "                [\n",
       "                    9,\n",
       "                    5,\n",
       "                    30\n",
       "                ],\n",
       "                [\n",
       "                    9,\n",
       "                    6,\n",
       "                    23\n",
       "                ],\n",
       "                [\n",
       "                    10,\n",
       "                    0,\n",
       "                    48\n",
       "                ],\n",
       "                [\n",
       "                    10,\n",
       "                    1,\n",
       "                    25\n",
       "                ],\n",
       "                [\n",
       "                    10,\n",
       "                    2,\n",
       "                    14\n",
       "                ],\n",
       "                [\n",
       "                    10,\n",
       "                    3,\n",
       "                    11\n",
       "                ],\n",
       "                [\n",
       "                    10,\n",
       "                    4,\n",
       "                    29\n",
       "                ],\n",
       "                [\n",
       "                    10,\n",
       "                    5,\n",
       "                    31\n",
       "                ],\n",
       "                [\n",
       "                    10,\n",
       "                    6,\n",
       "                    14\n",
       "                ],\n",
       "                [\n",
       "                    11,\n",
       "                    0,\n",
       "                    3\n",
       "                ],\n",
       "                [\n",
       "                    11,\n",
       "                    1,\n",
       "                    22\n",
       "                ],\n",
       "                [\n",
       "                    11,\n",
       "                    2,\n",
       "                    30\n",
       "                ],\n",
       "                [\n",
       "                    11,\n",
       "                    3,\n",
       "                    20\n",
       "                ],\n",
       "                [\n",
       "                    11,\n",
       "                    4,\n",
       "                    15\n",
       "                ],\n",
       "                [\n",
       "                    11,\n",
       "                    5,\n",
       "                    47\n",
       "                ],\n",
       "                [\n",
       "                    11,\n",
       "                    6,\n",
       "                    11\n",
       "                ],\n",
       "                [\n",
       "                    12,\n",
       "                    0,\n",
       "                    45\n",
       "                ],\n",
       "                [\n",
       "                    12,\n",
       "                    1,\n",
       "                    3\n",
       "                ],\n",
       "                [\n",
       "                    12,\n",
       "                    2,\n",
       "                    43\n",
       "                ],\n",
       "                [\n",
       "                    12,\n",
       "                    3,\n",
       "                    48\n",
       "                ],\n",
       "                [\n",
       "                    12,\n",
       "                    4,\n",
       "                    36\n",
       "                ],\n",
       "                [\n",
       "                    12,\n",
       "                    5,\n",
       "                    1\n",
       "                ],\n",
       "                [\n",
       "                    12,\n",
       "                    6,\n",
       "                    46\n",
       "                ],\n",
       "                [\n",
       "                    13,\n",
       "                    0,\n",
       "                    14\n",
       "                ],\n",
       "                [\n",
       "                    13,\n",
       "                    1,\n",
       "                    6\n",
       "                ],\n",
       "                [\n",
       "                    13,\n",
       "                    2,\n",
       "                    40\n",
       "                ],\n",
       "                [\n",
       "                    13,\n",
       "                    3,\n",
       "                    49\n",
       "                ],\n",
       "                [\n",
       "                    13,\n",
       "                    4,\n",
       "                    1\n",
       "                ],\n",
       "                [\n",
       "                    13,\n",
       "                    5,\n",
       "                    11\n",
       "                ],\n",
       "                [\n",
       "                    13,\n",
       "                    6,\n",
       "                    40\n",
       "                ],\n",
       "                [\n",
       "                    14,\n",
       "                    0,\n",
       "                    13\n",
       "                ],\n",
       "                [\n",
       "                    14,\n",
       "                    1,\n",
       "                    15\n",
       "                ],\n",
       "                [\n",
       "                    14,\n",
       "                    2,\n",
       "                    32\n",
       "                ],\n",
       "                [\n",
       "                    14,\n",
       "                    3,\n",
       "                    1\n",
       "                ],\n",
       "                [\n",
       "                    14,\n",
       "                    4,\n",
       "                    7\n",
       "                ],\n",
       "                [\n",
       "                    14,\n",
       "                    5,\n",
       "                    15\n",
       "                ],\n",
       "                [\n",
       "                    14,\n",
       "                    6,\n",
       "                    10\n",
       "                ],\n",
       "                [\n",
       "                    15,\n",
       "                    0,\n",
       "                    27\n",
       "                ],\n",
       "                [\n",
       "                    15,\n",
       "                    1,\n",
       "                    13\n",
       "                ],\n",
       "                [\n",
       "                    15,\n",
       "                    2,\n",
       "                    10\n",
       "                ],\n",
       "                [\n",
       "                    15,\n",
       "                    3,\n",
       "                    25\n",
       "                ],\n",
       "                [\n",
       "                    15,\n",
       "                    4,\n",
       "                    7\n",
       "                ],\n",
       "                [\n",
       "                    15,\n",
       "                    5,\n",
       "                    6\n",
       "                ],\n",
       "                [\n",
       "                    15,\n",
       "                    6,\n",
       "                    45\n",
       "                ],\n",
       "                [\n",
       "                    16,\n",
       "                    0,\n",
       "                    39\n",
       "                ],\n",
       "                [\n",
       "                    16,\n",
       "                    1,\n",
       "                    21\n",
       "                ],\n",
       "                [\n",
       "                    16,\n",
       "                    2,\n",
       "                    26\n",
       "                ],\n",
       "                [\n",
       "                    16,\n",
       "                    3,\n",
       "                    37\n",
       "                ],\n",
       "                [\n",
       "                    16,\n",
       "                    4,\n",
       "                    44\n",
       "                ],\n",
       "                [\n",
       "                    16,\n",
       "                    5,\n",
       "                    17\n",
       "                ],\n",
       "                [\n",
       "                    16,\n",
       "                    6,\n",
       "                    34\n",
       "                ],\n",
       "                [\n",
       "                    17,\n",
       "                    0,\n",
       "                    39\n",
       "                ],\n",
       "                [\n",
       "                    17,\n",
       "                    1,\n",
       "                    49\n",
       "                ],\n",
       "                [\n",
       "                    17,\n",
       "                    2,\n",
       "                    17\n",
       "                ],\n",
       "                [\n",
       "                    17,\n",
       "                    3,\n",
       "                    40\n",
       "                ],\n",
       "                [\n",
       "                    17,\n",
       "                    4,\n",
       "                    35\n",
       "                ],\n",
       "                [\n",
       "                    17,\n",
       "                    5,\n",
       "                    3\n",
       "                ],\n",
       "                [\n",
       "                    17,\n",
       "                    6,\n",
       "                    45\n",
       "                ],\n",
       "                [\n",
       "                    18,\n",
       "                    0,\n",
       "                    34\n",
       "                ],\n",
       "                [\n",
       "                    18,\n",
       "                    1,\n",
       "                    41\n",
       "                ],\n",
       "                [\n",
       "                    18,\n",
       "                    2,\n",
       "                    41\n",
       "                ],\n",
       "                [\n",
       "                    18,\n",
       "                    3,\n",
       "                    49\n",
       "                ],\n",
       "                [\n",
       "                    18,\n",
       "                    4,\n",
       "                    38\n",
       "                ],\n",
       "                [\n",
       "                    18,\n",
       "                    5,\n",
       "                    43\n",
       "                ],\n",
       "                [\n",
       "                    18,\n",
       "                    6,\n",
       "                    43\n",
       "                ],\n",
       "                [\n",
       "                    19,\n",
       "                    0,\n",
       "                    26\n",
       "                ],\n",
       "                [\n",
       "                    19,\n",
       "                    1,\n",
       "                    33\n",
       "                ],\n",
       "                [\n",
       "                    19,\n",
       "                    2,\n",
       "                    15\n",
       "                ],\n",
       "                [\n",
       "                    19,\n",
       "                    3,\n",
       "                    1\n",
       "                ],\n",
       "                [\n",
       "                    19,\n",
       "                    4,\n",
       "                    0\n",
       "                ],\n",
       "                [\n",
       "                    19,\n",
       "                    5,\n",
       "                    23\n",
       "                ],\n",
       "                [\n",
       "                    19,\n",
       "                    6,\n",
       "                    37\n",
       "                ],\n",
       "                [\n",
       "                    20,\n",
       "                    0,\n",
       "                    13\n",
       "                ],\n",
       "                [\n",
       "                    20,\n",
       "                    1,\n",
       "                    27\n",
       "                ],\n",
       "                [\n",
       "                    20,\n",
       "                    2,\n",
       "                    49\n",
       "                ],\n",
       "                [\n",
       "                    20,\n",
       "                    3,\n",
       "                    50\n",
       "                ],\n",
       "                [\n",
       "                    20,\n",
       "                    4,\n",
       "                    1\n",
       "                ],\n",
       "                [\n",
       "                    20,\n",
       "                    5,\n",
       "                    34\n",
       "                ],\n",
       "                [\n",
       "                    20,\n",
       "                    6,\n",
       "                    7\n",
       "                ],\n",
       "                [\n",
       "                    21,\n",
       "                    0,\n",
       "                    42\n",
       "                ],\n",
       "                [\n",
       "                    21,\n",
       "                    1,\n",
       "                    7\n",
       "                ],\n",
       "                [\n",
       "                    21,\n",
       "                    2,\n",
       "                    29\n",
       "                ],\n",
       "                [\n",
       "                    21,\n",
       "                    3,\n",
       "                    6\n",
       "                ],\n",
       "                [\n",
       "                    21,\n",
       "                    4,\n",
       "                    41\n",
       "                ],\n",
       "                [\n",
       "                    21,\n",
       "                    5,\n",
       "                    24\n",
       "                ],\n",
       "                [\n",
       "                    21,\n",
       "                    6,\n",
       "                    39\n",
       "                ],\n",
       "                [\n",
       "                    22,\n",
       "                    0,\n",
       "                    48\n",
       "                ],\n",
       "                [\n",
       "                    22,\n",
       "                    1,\n",
       "                    1\n",
       "                ],\n",
       "                [\n",
       "                    22,\n",
       "                    2,\n",
       "                    48\n",
       "                ],\n",
       "                [\n",
       "                    22,\n",
       "                    3,\n",
       "                    12\n",
       "                ],\n",
       "                [\n",
       "                    22,\n",
       "                    4,\n",
       "                    5\n",
       "                ],\n",
       "                [\n",
       "                    22,\n",
       "                    5,\n",
       "                    8\n",
       "                ],\n",
       "                [\n",
       "                    22,\n",
       "                    6,\n",
       "                    0\n",
       "                ],\n",
       "                [\n",
       "                    23,\n",
       "                    0,\n",
       "                    26\n",
       "                ],\n",
       "                [\n",
       "                    23,\n",
       "                    1,\n",
       "                    46\n",
       "                ],\n",
       "                [\n",
       "                    23,\n",
       "                    2,\n",
       "                    17\n",
       "                ],\n",
       "                [\n",
       "                    23,\n",
       "                    3,\n",
       "                    48\n",
       "                ],\n",
       "                [\n",
       "                    23,\n",
       "                    4,\n",
       "                    19\n",
       "                ],\n",
       "                [\n",
       "                    23,\n",
       "                    5,\n",
       "                    30\n",
       "                ],\n",
       "                [\n",
       "                    23,\n",
       "                    6,\n",
       "                    0\n",
       "                ]\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"show\": true,\n",
       "                \"position\": \"inside\",\n",
       "                \"margin\": 8\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u70ed\\u529b\\u56fe\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u70ed\\u529b\\u56fe\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            },\n",
       "            \"data\": [\n",
       "                \"12a\",\n",
       "                \"1a\",\n",
       "                \"2a\",\n",
       "                \"3a\",\n",
       "                \"4a\",\n",
       "                \"5a\",\n",
       "                \"6a\",\n",
       "                \"7a\",\n",
       "                \"8a\",\n",
       "                \"9a\",\n",
       "                \"10a\",\n",
       "                \"11a\",\n",
       "                \"12p\",\n",
       "                \"1p\",\n",
       "                \"2p\",\n",
       "                \"3p\",\n",
       "                \"4p\",\n",
       "                \"5p\",\n",
       "                \"6p\",\n",
       "                \"7p\",\n",
       "                \"8p\",\n",
       "                \"9p\",\n",
       "                \"10p\",\n",
       "                \"11p\"\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            },\n",
       "            \"data\": [\n",
       "                \"\\u5468\\u4e00\",\n",
       "                \"\\u5468\\u4e8c\",\n",
       "                \"\\u5468\\u4e09\",\n",
       "                \"\\u5468\\u56db\",\n",
       "                \"\\u5468\\u4e94\",\n",
       "                \"\\u5468\\u516d\",\n",
       "                \"\\u5468\\u65e5\"\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"show\": true,\n",
       "        \"type\": \"continuous\",\n",
       "        \"min\": 0,\n",
       "        \"max\": 100,\n",
       "        \"inRange\": {\n",
       "            \"color\": [\n",
       "                \"#50a3ba\",\n",
       "                \"#eac763\",\n",
       "                \"#d94e5d\"\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"inverse\": false,\n",
       "        \"splitNumber\": 5,\n",
       "        \"orient\": \"horizontal\",\n",
       "        \"showLabel\": true,\n",
       "        \"itemWidth\": 20,\n",
       "        \"itemHeight\": 140,\n",
       "        \"borderWidth\": 0\n",
       "    }\n",
       "};\n",
       "                chart_e8cfb5ec84464b129fc2650e6970a893.setOption(option_e8cfb5ec84464b129fc2650e6970a893);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x25546225be0>"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "c = (\n",
    "    HeatMap()\n",
    "    .add_xaxis(Faker.clock)\n",
    "    .add_yaxis(\n",
    "        '热力图',\n",
    "        Faker.week,\n",
    "        value,\n",
    "        label_opts=opts.LabelOpts(is_show=True, position='inside')\n",
    "    )\n",
    "    .set_global_opts(\n",
    "        title_opts=opts.TitleOpts(title='热力图')\n",
    "    )\n",
    ")\n",
    "c.render_notebook()"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
